package com.tianji.learning.service;

import com.tianji.learning.domain.po.PointsRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.PointsStatisticsVO;
import com.tianji.learning.enums.PointsRecordType;
import com.tianji.learning.mq.msg.SignInMessage;

import java.util.List;

/**
 * <p>
 * 学习积分记录，每个月底清零 服务类
 * </p>
 *
 * @author zzj
 * @since 2024-05-12
 */
public interface IPointsRecordService extends IService<PointsRecord> {

    /**
     * @description: 增加积分 
     * @params: [msg]       
     * @return: 
     * @author: ajie
     * @date: 2024/5/14 17:26
     */
    void addPointRecord(SignInMessage msg, PointsRecordType type);

    /**
     * @description: 查询我的今日积分情况
     * @params: []       
     * @return: 
     * @author: ajie
     * @date: 2024/5/14 22:41
     */
    List<PointsStatisticsVO> queryMyTodayPoints();
}
